Skip to content

Fix pet schema validation for name field#225

Open
KrutiChaudhari wants to merge 1 commit intoautomationExamples:mainfrom
KrutiChaudhari:petfixPR
Open

Fix pet schema validation for name field#225
KrutiChaudhari wants to merge 1 commit intoautomationExamples:mainfrom
KrutiChaudhari:petfixPR

Conversation

@KrutiChaudhari
Copy link
Copy Markdown

@KrutiChaudhari KrutiChaudhari commented Mar 25, 2026

Screenshot 2026-03-25 at 1 07 51 PM

Fix schema validation issue for the pet API response.

Changes

  • Updated the name property type in schemas.py from integer to string.

Reason
The API returns pet names as strings (e.g., "ranger"), but the schema expected an integer, causing the test_pet_schema test to fail.

Testing

  • Executed pytest locally
  • All tests passing

Result
4 tests passed successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant